home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
logbatch
/
check.arc
/
CHECK.TXT
< prev
Wrap
Text File
|
1987-08-28
|
2KB
|
61 lines
CHECK.COM - SUMMARY
Syntax: CHECK keyword [parameter 1 parameter 2 ... ]
Function Return Code
_____________________________________________________________________________
FileSize filespec Length of file in Kbytes
FileFound filespec 0: File found
1: File not found
FileText filespec 'string' 0: String found
1: String not found
DiskSpace [d:] Number of whole 16 kbyte blocks free
on indicated or default drive
Memory Number of 16k RAM modules
VideoCard 0: Monochrome Display Adapter
1: Color Graphics Adapter
2: Enhanced Graphics Adapter
Model Machine ID byte
8087 or 80287 0: 8087 or 80287 installed
1: 8087 or 80287 not installed
Time Current hour (0-23)
Day Current day (1-31)
Month Current month (1-12)
VideoMode Current Video mode (0-16)
Version Dos version (major integral number) in use
KeyBoard 0: Keyboard buffer empty
1: Entry awaiting processing
KeyPress ASCII code of key pressed
Example of Check.com Usage in Batch File:
CHECK TIME
IF ERRORLEVEL 18 GOTO EVENING
IF ERRORLEVEL 12 GOTO AFTERNOON
ECHO GOOD MORNING!
GOTO END
:AFTERNOON
ECHO GOOD AFTERNOON!
GOTO END
:EVENING
ECHO GOOD EVENING!
:END